package com.zhy.springcloud.controller;

import com.zhy.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author zhy
 * @Description
 * @ClassName SendMessageController
 * @Date 2020/12/17 15:59
 **/
@RestController
public class SendMessageController {

    @Resource
    private IMessageProvider iMessageProvider;

    @GetMapping("/sendMessage")
    public  String sendMessage(){
        return iMessageProvider.send();
    }



}
